import request from '@/utils/request'

// 查询产权信息列表
export function listPropertyCompany(query) {
  return request({
    url: '/propertyCompany/propertyCompany/list',
    method: 'get',
    params: query
  })
}

// 查询产权信息详细
export function getPropertyCompany(id) {
  return request({
    url: '/propertyCompany/propertyCompany/' + id,
    method: 'get'
  })
}

// 保存产权信息
export function savePropertyCompany(data) {
  return request({
    url: '/propertyCompany/propertyCompany/save',
    method: 'post',
    data: data
  })
}

// 删除产权信息
export function delPropertyCompany(id) {
  return request({
    url: '/propertyCompany/propertyCompany/' + id,
    method: 'delete'
  })
}

// 导出产权信息
export function exportPropertyCompany(query) {
  return request({
    url: '/propertyCompany/propertyCompany/export',
    method: 'get',
    params: query
  })
}

// 删除管理人员
export function delPropertyLeader(id) {
  return request({
    url: '/propertyLeader/propertyLeader/' + id,
    method: 'delete'
  })
}

// 删除出资信息
export function delPropertyShareholder(id) {
  return request({
    url: '/propertyShareholder/propertyShareholder/' + id,
    method: 'delete'
  })
}

// 查询公司名称
export function findCompanyId() {
  return request({
    url: '/propertyCompany/propertyCompany/findCompanyId',
    method: 'get'
  })
}

// 查询架构图
export function getGraph() {
  return request({
    url: '/propertyCompany/propertyCompany/getGraph',
    method: 'get'
  })
}

